package com.jiyun.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jiyun.model.Race;
import com.jiyun.model.Train;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/* *
 * @Author nxj
 * @Date 2023 08 2023/8/9 16 13
 * */
public interface TrainMapper extends BaseMapper<Train> {

    @Select("select count(p.id) from quiz q , quiz_paper q1,paper p where q.id=q1.qid and q1.pid=p.id and q.id=#{value}")
    Integer findQuiz(Integer id);
}
